package ar.edu.unq.wannaplay.pages.client;

import ar.edu.unq.wannaplay.dtos.ClientDTO;
import ar.edu.unq.wannaplay.pages.WPPage;
import ar.edu.unq.wannaplay.panels.client.SingleClientViewPanel;

public class SingleClientViewPage extends WPPage {

    private ClientDTO modelObject;

    public SingleClientViewPage(final ClientDTO modelObject) {
        super("Client Details Page");
        this.setModelObject(modelObject);
        this.initialize();

    }

    @Override
    protected void addMainContent() {
        this.add(new SingleClientViewPanel("mainContent", this.getModelObject()));
    }

    public void setModelObject(final ClientDTO modelObject) {
        this.modelObject = modelObject;
    }

    public ClientDTO getModelObject() {
        return modelObject;
    }

}
